home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ Active Desktop 1.xpl < prev    next >
Text File  |  2000-11-18  |  3KB  |  88 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="6"
  3. "COUNT"="4"
  4. "UIPATH"="Appearance\Desktop\Active Desktop"
  5. "NAME"="Active Desktop Component Options"
  6. "VERSION"="1.13"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Enable Active Desktop Components"
  9. "TEXT 2"="Enable adding Active Desktop Components"
  10. "TEXT 3"="Enable deleting Active Desktop Components"
  11. "TEXT 4"="Enable edit Active Desktop Components"
  12. "DESCRIPTION 1"="This plugin allows you to change some settings for Active Desktop."
  13. "DESCRIPTION 2"="NOTE: When all options are disabled, ActiveDesktop page is not shown in Display Options."
  14. "AUTHOR"="Ojatex@aol.com"
  15. "CONTACTURL"="http://members.aol.com/ojatex/"
  16. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  17. "COMMENT 1"=" "
  18. "COMMENT 2"="Does anybody outside of Redmond really use Active Desktop?"
  19.  
  20. 'note: 0 = disable restriction, 1 = enable restriction
  21.  
  22.  
  23. Sub Plugin_Initialize 
  24.  
  25.  i=RegReadValue("HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\ActiveDesktop\NoComponents")
  26.  if i=0 or IsEmpty(i) then SetUIElement 1,true
  27.  
  28.  
  29.  i=RegReadValue("HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\ActiveDesktop\NoAddingComponents")
  30.  if i=0 or IsEmpty(i) then SetUIElement 2,true
  31.  
  32.  
  33.  i=RegReadValue("HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\ActiveDesktop\NoDeletingComponents")
  34.  if i=0 or IsEmpty(i) then SetUIElement 3,true
  35.  
  36.  
  37.  i=RegReadValue("HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\ActiveDesktop\NoEditingComponents")
  38.  if i=0 or IsEmpty(i) then SetUIElement 4,true
  39.  
  40.  
  41. End Sub
  42.  
  43. Sub Plugin_CheckData(ElementIndex)
  44. End Sub
  45.  
  46.  
  47.  
  48. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  49.  
  50.  
  51.  b=GetUIElement(1)
  52.  if b=false then
  53.   Call RegWriteValue("HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\ActiveDesktop\NoComponents","1",2)
  54.  else
  55.   Call RegWriteValue("HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\ActiveDesktop\NoComponents","0",2)
  56.  end if
  57.  
  58.  b=GetUIElement(2)
  59.  if b=false then
  60.   Call RegWriteValue("HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\ActiveDesktop\NoAddingComponents","1",2)
  61.  else
  62.   Call RegWriteValue("HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\ActiveDesktop\NoAddingComponents","0",2)
  63.  end if
  64.  
  65.  b=GetUIElement(3)
  66.  if b=false then
  67.   Call RegWriteValue("HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\ActiveDesktop\NoDeletingComponents","1",2)
  68.  else
  69.   Call RegWriteValue("HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\ActiveDesktop\NoDeletingComponents","0",2)
  70.  end if
  71.  
  72.  b=GetUIElement(4)
  73.  if b=false then
  74.   Call RegWriteValue("HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\ActiveDesktop\NoEditingComponents","1",2)
  75.  else
  76.   Call RegWriteValue("HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\ActiveDesktop\NoEditingComponents","0",2)
  77.  end if
  78.  
  79.  Call IndicateSettingChange()
  80. End Sub
  81.  
  82.  
  83. Sub Plugin_Terminate 
  84. End Sub
  85.  
  86.  
  87.  
  88.